<html><head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta content="text/javascript" http-equiv="content-script-type">
<title>tango.util.collection.model.GuardIterator</title>

<link rel="stylesheet" type="text/css" href="css/style.css">
<!--[if lt IE 7]><link rel="stylesheet" type="text/css" href="css/ie56hack.css"><![endif]-->
<script language="JavaScript" src="js/util.js" type="text/javascript"></script>
<script language="JavaScript" src="js/tree.js" type="text/javascript"></script>
<script language="JavaScript" src="js/explorer.js" type="text/javascript"></script>
<script>
function anchorFromTitle(title, path, ext) {
  var url = path + title + "." + ext;
  document.write("<a href='" + url + "'>" + title + "</a>");
  }
</script>
</head><body>
<div id="tabarea"></div><div id="explorerclient"></div>
<div id="content"><script>explorer.initialize("tango.util.collection.model.GuardIterator");</script>
        <table class="content">
                <tr><td id="docbody"><h1><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/collection/model/GuardIterator.d?rev=3461">tango.util.collection.model.GuardIterator</a></h1>
                
<dl>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>interface <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/collection/model/GuardIterator.d?rev=3461#L31">GuardIterator</a></span>
<script>explorer.outline.addDecl('GuardIterator');</script>(V) : Iterator!(V);</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">CollectionIterator extends the standard
 tango.util.collection.model.Iterator interface with two additional methods.
 
        </font><br><br>
<b>author:</b><br>Doug Lea
 @version 0.93<br><br> <P> For an introduction to this package see <A HREF="index.html"> Overview </A>.<br><br>
<dl>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>bool <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/collection/model/GuardIterator.d?rev=3461#L43">corrupted</a></span>
<script>explorer.outline.addDecl('corrupted');</script>(); [public]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Return true if the collection that constructed this enumeration
 has been detectably modified since construction of this enumeration.
 Ability and precision of detection of this condition can vary
 across collection class implementations.
 more&#40;&#41; is false whenever corrupted is true.</font><br><br>
<b>Returns:</b><br>
true if detectably corrupted.<br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>uint <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/util/collection/model/GuardIterator.d?rev=3461#L65">remaining</a></span>
<script>explorer.outline.addDecl('remaining');</script>(); [public]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Return the number of elements in the enumeration that have
 not yet been traversed. When corrupted&#40;&#41; is true, this 
 number may &#40;or may not&#41; be greater than zero even if more&#40;&#41; 
 is false. Exception recovery mechanics may be able to
 use this as an indication that recovery of some sort is
 warranted. However, it is not necessarily a foolproof indication.
 <P>
 You can also use it to pack enumerations into arrays. For example:
 <PRE>
 Object arr[] = new Object[e.numberOfRemainingElement&#40;&#41;]
 int i = 0;
 while &#40;e.more&#40;&#41;&#41; arr[i++] = e.value&#40;&#41;;
 </PRE>
 <P>
 For the converse case, 
 </font><br><br>
<b>See Also:</b><br>
tango.util.collection.iterator.ArrayIterator.ArrayIterator<br><br>
<b>Returns:</b><br>
the number of untraversed elements<br><br></dd></dl></dd></dl></td></tr>
                <tr><td id="docfooter">
                         :: page rendered by CandyDoc. Generated by <a href="http://code.google.com/p/dil">dil</a> on Sun Jun  8 17:12:54 2008.
                </td></tr>
        </table>
</div>
<script></script>
</body></html>